﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Trading.Purchase.GoodsPurchaseCertificate;
using BCDto.Sim.Admin.Admin;
using BCDto.Trading.Purchase.GoodsPurchaseCertificate;
using BCEntity.Trading.Purchase.GoodsPurchaseCertificate;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Trading.Purchase.GoodsPurchaseCertificate
{
    /// <summary>
    /// 商品采购单记账凭证
    /// </summary>
    public interface IGoodsPurchaseCertificateService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="goodsPurchaseCertificateId">商品采购单记账凭证Id</param>
        bool Exists(long goodsPurchaseCertificateId);
        /// <summary>
        /// 添加商品采购单记账凭证
        /// </summary>
        /// <param name="requestDto">商品采购单记账凭证信息</param>
        /// <param name="adminDto"></param>
        GoodsPurchaseCertificateDto Add(GoodsPurchaseCertificateRequestDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 更新商品采购单记账凭证
        /// </summary>
        /// <param name="putDto">商品采购单记账凭证信息</param>
        /// <param name="adminDto"></param>
        GoodsPurchaseCertificateDto Update(GoodsPurchaseCertificatePutDto putDto, AdminDto adminDto);
        /// <summary>
        /// 删除商品采购单记账凭证
        /// </summary>
        /// <param name="goodsPurchaseCertificateId">商品采购单记账凭证Id</param>
        bool Delete(long goodsPurchaseCertificateId);
        /// <summary>
        /// 获取商品采购单记账凭证
        /// </summary>
        /// <param name="goodsPurchaseCertificateId">商品采购单记账凭证Id</param>
        GoodsPurchaseCertificateDto Get(long goodsPurchaseCertificateId);
        /// <summary>
        /// 获取商品采购单记账凭证列表
        /// </summary>
        /// <param name="goodsPurchaseId">商品采购单Id</param>
        IEnumerable<GoodsPurchaseCertificateDto> GetList(long goodsPurchaseId);
        /// <summary>
        /// 获取商品采购单记账凭证分页列表
        /// </summary>
        /// <param name="goodsPurchaseId">商品采购单Id</param>
        /// <param name="certificateNo">凭证编号</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">商品采购单记账凭证每页数据条数</param>
        PageableList<GoodsPurchaseCertificateDto> Query(long? goodsPurchaseId, string certificateNo, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}